<template>
  <div id="app">
    <a-config-provider :locale="locale">
      <router-view />
    </a-config-provider>
  </div>
</template>

<script>
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
export default {
  data() {
    return {
      locale: zhCN
    }
  },
  created() {
    this.$store.state.appPublicUrl = process.env.VUE_APP_PUBLIC_URL
    let scheme = window.location.href.split(':')[0]
    this.$store.state.appPublicUrl = scheme + this.$store.state.appPublicUrl
  }
}
</script>

<style lang="less">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  background: #fff;
  height: 100%;
}
#nprogress .bar {
  // top: 53px !important;
  height: 3px !important;
}
</style>
